<template>
  <ul class="todo-main">
    <div class="box1" v-show="Todos.length == 0">暂无数据</div>
    <Item
    :abab="abab"
      @DeleteTodo="$emit('DeleteTodo',index)"
      :index="index"
      @chenckTodo="$emit('chenckTodo',index)"
      v-for="(item, index) in Todos"
      :key="item.id"
      :item="item"
    ></Item>
  </ul>
</template>

<script>
import Item from "@/components/Todo/Main/Item";
export default {
  name: "TodoMain",
  components: {
    Item,
  },
  props: {
    Todos: {},
    abab:{}
    // chenckTodo:{},
    // DeleteTodo:{},
  },
};
</script>

<style  scoped>
/*main*/
.todo-main {
  margin-left: 0px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0px;
}

.todo-empty {
  height: 40px;
  line-height: 40px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding-left: 5px;
  margin-top: 10px;
}
.box1 {
  padding: 20px;
  text-align: center;
}
</style>